package netframe;

import android.content.Intent;
import android.util.Log;


import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import rx.functions.Action1;

/**
 * Created by admin on 2017/12/21.
 */
//rxjava网络请求错误,统一处理
public class MyAction1 implements Action1<Throwable>{
    @Override
    public void call(Throwable throwable) {
        if (throwable!=null&&throwable.getMessage()!=null) {
            Log.e("cuowu", "call: " + throwable.getMessage().toString());
        }
//        String s = throwable.getMessage().toString();
//        Log.e("ceshi",throwable.getMessage().toString());
    }

}
